function keyCheck(usercode,usertype,userKey,callback){
	var random = "?random="+Math.random();
	var url = QualityCheck.GPUD.ServiceConfig.ServerLoginUrl;
	var obj = {
		cmd:"checkUser",
		model:"login",
		userKey:userKey,
		data:{
			usercode:usercode,
			usertype:usertype,
			userkey:userKey
		},
		remark:"",
	};
	$.ajax({
		url: url + random, type: "get", 
		contentType:"application/json; charset=utf-8",
		data:{param:JSON.stringify(obj)},
		success: function(data){
			if(data.result == 1 && data.data != ""){
				if(typeof callback === "function"){
					callback.call();
				}
			}else{
				if(usertype==1){
					top.location = encodeURI("../../../../login.html");
				}else if(usertype==2){
					top.location = encodeURI("../../../../login.html");
				}else if(usertype==0){
					top.location = encodeURI("../../../../../login.html");
				}	
			}
	    },error:function(){
//	    	alert("ajax请求错误");
	    }	
    });
}